package com.lbx.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 吕兵星
 * @date 2020/11/9 15:01
 */
@RestController
public class ConfigController {
    @Value("${spring.application.name}")
    private String applicationName;

    @Value("${eureka.client.server-url.defaultZone}")
    private String eurekaServer;

    @Value("${server.port}")
    private String port;
    @GetMapping("/getConfig")
    public String getConfig(){
        return applicationName+"|"+eurekaServer+"|"+port;
    }
}
